package com.leetcode.August;

/**
 * @Description: 172. 阶乘后的零
 * @Author: Mr.Fxy
 * @CreateTime: 2024-09-05 09:37
 */
public class LC172阶乘后的零 {
    public int trailingZeroes(int n) {
        int count = 0;
        while (n >= 5) {
            count += n / 5;
            n /= 5;
        }
        return count;
    }

}
